package com.common.util;

import java.util.Random;

public class RandomUtil {

	
	public static String randomNext(int i){
		String str = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
		StringBuffer str1 =new StringBuffer();
		for(int j=0;j<i;j++){
			char ii = str.charAt(new Random().nextInt(str.length()-1));
			str1.append(ii);
		}
		return str1.toString();
	}
	
	public static String randomThree(){
		Random r = new Random();
		String str = String.valueOf(r.nextInt(1000));
		return str;
	}
	public static void main(String[] args) {
		System.out.println(randomThree());
	}
}
